import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);

// 引入模块的仓库
import home from "./modules/home";
import user from "./modules/user";

// 暴露 Vuex.Store 类的实例
export default new Vuex.Store({
  modules: { // 模块：把小仓库进行合并变为大仓库
    home,
    user
  }
});